﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/List.Master"  AutoEventWireup="true" CodeBehind="Bu_AuditTable_List.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Audit.Bu_AuditTable_List"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript" src="../../Scripts/table.js"></script>
    <script language="javascript" type="text/javascript">
        function openwindow(url, name) {
            var iWidth = 940; //弹出窗口的宽度;
            var iHeight = window.screen.availHeight - 30; //弹出窗口的高度;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
            window.open(url, name, 'height=' + iHeight + ',innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no');
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">		
    <div class="query_area">
        批次：<asp:TextBox ID="txtBatchNo" runat="server" Width="60px" cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isInt();" ></asp:TextBox>&nbsp;&nbsp;
		项目编号：<asp:TextBox ID="txtProjectSN" runat="server"  Width="60px"   cssClass="input2" MaxLength="200"></asp:TextBox>&nbsp;&nbsp;
		项目名称：<asp:TextBox ID="txtProjectName" runat="server"  cssClass="input2" MaxLength="200"></asp:TextBox>&nbsp;&nbsp;
		合同名称：<asp:TextBox ID="txtContractName" runat="server"  cssClass="input2" MaxLength="200"></asp:TextBox>&nbsp;&nbsp;
		审核作业表编号：<asp:TextBox ID="txtCode" runat="server"  cssClass="input2" MaxLength="200"></asp:TextBox>&nbsp;&nbsp;
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClick="btnQuery_Click" />
    </div>            
    <div class="button_area">
        <asp:Button runat="server" ID="btnAdd" CssClass="btn_normal" Visible="false"
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增"/>
        <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="删 除"  Visible="false"
            OnClientClick="javascript:return getNoSelectionAlert('chkID','请选择要删除的记录后在执行此操作！');"             
            onclick="btnDelete_Click" />
    </div>
            
    <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>  
            <th align="center" width="30px">
                <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
            </th>            
            <th align="center"width="40px">批次</th>
            <th align="center">项目名称</th>
            <th align="center">合同名称</th>
            <th align="center"width="120px">编号</th>            
            <th align="center"width="60px">状态</th>
            <th align="center"width="80px">当前流程环节</th>
            <th align="center"width="60px">当前处理人</th>
            <th width="60px">操作</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td align="center" >
						<input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
					</td>
					<td><%#  DataBinder.Eval(Container.DataItem,"BatchNo") %></td>
					<td style="text-align:left"><%#  DataBinder.Eval(Container.DataItem,"ProjectName") %></td>
					<td style="text-align:left"><%#  DataBinder.Eval(Container.DataItem,"ContractName") %></td>
					<td><%# GetLinkUrl(DataBinder.Eval(Container.DataItem, "ID") + "",DataBinder.Eval(Container.DataItem,"Code")+"") %></td>
                    <td><%# Honestysoft.EnumHelper.EnumInstance.GetEnumDataText(typeof(Honestysoft.Financing.Model.EnumItem.AuditTableStatus),  DataBinder.Eval(Container.DataItem,"BuStatus")+"") %></td>
					
                    <td><%#  DataBinder.Eval(Container.DataItem, "CurrentNode")%></td>
                    <td><%#  DataBinder.Eval(Container.DataItem, "CurrentUser")%></td>
                    <td>
						<%# GetButtonScript(DataBinder.Eval(Container.DataItem, "ID") + "", DataBinder.Eval(Container.DataItem, "TableType") + "", DataBinder.Eval(Container.DataItem, "BuStatus") + "")%>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
    <div class="paging_area">
     <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>  
    </div>
    <script language="javascript" type="text/javascript">
        uniteTable(tGrid, 4);
   </script>
</asp:Content>